package org.jeecg.modules.rental.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 租车网点
 * @Author: sean
 * @Date:   2022-03-29
 * @Version: V1.0
 */
@Data
@TableName("rental_store")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="rental_store对象", description="rental_store")
public class RentalStore implements Serializable {
    private static final long serialVersionUID = 1L;

	/**网点id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "网点id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**网点编码*/
    @Excel(name = "网点分类", width = 15)
    @ApiModelProperty(value = "网点分类")
    private String storeCategory;
	/**网点编码*/
	@Excel(name = "网点编码", width = 15)
    @ApiModelProperty(value = "网点编码")
    private String meshPointsCode;
	/**网点名称*/
	@Excel(name = "网点名称", width = 15)
    @ApiModelProperty(value = "网点名称")
    private String meshPointsName;
	/**网点负责人id*/
	@Excel(name = "网点负责人id", width = 15)
    @ApiModelProperty(value = "网点负责人id")
    private String personChargeId;

    @Excel(name = "客服电话", width = 15)
    @ApiModelProperty(value = "客服电话")
    private String phone;

    @Excel(name = "网点负责人id", width = 15)
    @ApiModelProperty(value = "网点负责人id")
    @TableField(exist = false)
    private String personChargeName;

    /**网点状态：1启用，2维护，3删除*/
	@Excel(name = "网点状态：1启用，2维护，3删除", width = 15)
    @ApiModelProperty(value = "网点状态：1启用，2维护，3删除")
    private Integer meshPointsType;
    /**邮政编码*/
    @ApiModelProperty(value = "邮政编码")
    private String zipCode;
//    /**区域id*/
//    @ApiModelProperty(value = "区域id")
//    @JsonSerialize(using = ToStringSerializer.class)
//    private String regionId;
//    @TableField(exist = false)
//    private String regionName;
	/**归属运营商*/
    @ApiModelProperty(value = "归属运营商")
    private String sysOrgCode;
	/**网点图片##分割*/
	@Excel(name = "网点图片##分割", width = 15)
    @ApiModelProperty(value = "网点图片##分割")
    private String pic;
	/**详细地址*/
	@Excel(name = "详细地址", width = 15)
    @ApiModelProperty(value = "详细地址")
    private String detailedAddress;
	/**省*/
	@Excel(name = "省", width = 15)
    @ApiModelProperty(value = "省")
    private Integer provinceId;
	/**省名称*/
	@Excel(name = "省名称", width = 15)
    @ApiModelProperty(value = "省名称")
    private String provinceName;
	/**市*/
	@Excel(name = "市", width = 15)
    @ApiModelProperty(value = "市")
    private Integer cityId;
	/**市名称*/
	@Excel(name = "市名称", width = 15)
    @ApiModelProperty(value = "市名称")
    private String cityName;
	/**区*/
	@Excel(name = "区", width = 15)
    @ApiModelProperty(value = "区")
    private Integer areaId;
	/**区名称*/
	@Excel(name = "区名称", width = 15)
    @ApiModelProperty(value = "区名称")
    private String areaName;
	/**位置*/
	@Excel(name = "位置", width = 15)
    @ApiModelProperty(value = "位置")
    private String location;
	/**经度*/
	@Excel(name = "经度", width = 15)
    @ApiModelProperty(value = "经度")
    private String longitude;
	/**维度*/
	@Excel(name = "维度", width = 15)
    @ApiModelProperty(value = "维度")
    private String latitude;
    /**配置值*/
    @ApiModelProperty(value = "配置值")
    private String configValue;
	/**是否删除（0：否、1：是）*/
	@Excel(name = "是否删除（0：否、1：是）", width = 15)
    @ApiModelProperty(value = "是否删除（0：否、1：是）")
    @TableLogic(value="0", delval = "1")
    private Integer isDelete;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
